import requests

url = 'https://www.baidu.com/index.htm'

resp = requests.post(url)
print(f'获取响应状态码{resp.status_code}')
print(f'获取响应头{resp.headers}')
print(f'获取响应体{resp.text}')
print(f'获取响应时间{resp.elapsed.total_seconds()}')
